package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: wanqian
 * @Date: 2021/1/26 11:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DoubleLinkedNode {

    private int id;

    private String name;

    private DoubleLinkedNode next;

    private DoubleLinkedNode pre;

    public DoubleLinkedNode(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "DoubleLinkedNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
